package com.zpp.wedding_admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zpp.wedding_admin.entity.Collect;
import com.zpp.wedding_admin.mapper.CollectMapper;
import com.zpp.wedding_admin.service.ICollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectServiceImpl extends ServiceImpl<CollectMapper, Collect> implements ICollectService {

    @Autowired
    private CollectMapper collectMapper;

    @Override
    public List<Collect> getCollect(String id) {
        return collectMapper.getCollect(id);
    }

    @Override
    public boolean collectAdd(String id, String userId) {
        return collectMapper.collectAdd(id, userId);
    }

    @Override
    public boolean collectSubtract(String id, String userId) {
        return collectMapper.collectSubtract(id, userId);
    }
}
